﻿using SqlSugar;

namespace Basic.WxModel.DB
{
    [SugarTable("WxMsgEventLog")]
    public class DBWxMsgEventLog
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        /// <summary>
        /// 微信商户AppId
        /// </summary>
        public string WxAppId
        {
            get;
            set;
        }
        /// <summary>
        /// 平台AppId
        /// </summary>
        public string AppId
        {
            get;
            set;
        }
        /// <summary>
        /// 消息ID
        /// </summary>
        public string MsgId
        {
            get;
            set;
        }
        /// <summary>
        /// 用户OpenId
        /// </summary>
        public string UserOpenId
        {
            get;
            set;
        }
        /// <summary>
        /// 事件类型
        /// </summary>
        public string MsgType { get; set; }

        /// <summary>
        /// 是否为事件
        /// </summary>
        public bool IsEvent { get; set; }

        /// <summary>
        /// 消息体
        /// </summary>
        [SugarColumn(IsJson = true)]
        public Dictionary<string, string> MsgBody { get; set; }

        /// <summary>
        /// 消息时间
        /// </summary>
        public long MsgTime { get; set; }
    }
}
